package com.stlm2.dems.entity;

import com.stlm2.dems.entity.base.BaseComments;

/**
 * Created by zlq on 2017/8/15.
 */
public class Comments extends BaseComments{
    private CommentsProperty commentsProperty;

    public CommentsProperty getCommentsProperty() {
        return commentsProperty;
    }

    public void setCommentsProperty(CommentsProperty commentsProperty) {
        this.commentsProperty = commentsProperty;
    }


    public Integer getCommentsPropertyValue(){
        return (commentsProperty != null) ? commentsProperty.getIntValue() : null;
    }

    public void setCommentsPropertyValue(Integer v){
        if(v != null)
            commentsProperty = CommentsProperty.getByIntValue(v);
    }
}
